package com.yunhe.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.yunhe.bean.ZkDetails;
import com.yunhe.iservice.ZkDetailService;

@Controller
@RequestMapping("/zkdetail")
public class ZkDetailController {
	
	/**
	 * 依赖 
	 * @Qualifier task的实现类
	 * 
	 */
	@Autowired
	@Qualifier("zkDetailServiceImpl")
	private ZkDetailService zkdetailService;
	
	/**
	 * 
	 */
	@RequestMapping("/zkdetailshow")
	@ResponseBody
	public List<ZkDetails> candidateshow(Integer taskId,HttpServletRequest request,HttpServletResponse response){
	/*	String t_id=request.getParameter("task_id");
		int TaskId=Integer.parseInt(t_id);*/
		
		List<ZkDetails> ZkDetails = zkdetailService.getCandidateById(taskId);
		return ZkDetails;
		
	
	}
	
	
}
